package com.neusoft.sysdata.service.impl;

import com.baomidou.dynamic.datasource.annotation.DS;
import com.neusoft.sysdata.entity.SmUser;
import com.neusoft.sysdata.mapper.SmUserMapper;
import com.neusoft.sysdata.service.ISmUserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;

import java.util.List;

/**
 * @Description: SM_USER
 * @Author: jeecg-boot
 * @Date: 2019-12-10
 * @Version: V1.0
 */
@Service
@DS("slave")
public class SmUserServiceImpl extends ServiceImpl<SmUserMapper, SmUser> implements ISmUserService {

    @Autowired
    private SmUserMapper smUserMapper;

    /**
     * 查询用户信息
     */
    @Override
    public List<SmUser> selectUserInfo(String code) {
        return this.smUserMapper.selectUserInfo(code);
    }
}
